<?php
function mongofunc(){
	$aa=new MongoClient();
    $db=$aa->test;
    $collection=$db->col;
    $cursor=$collection->find();
    var_dump($cursor);die;
}